package io.wdb.modules.generator.generator.dao;

import io.wdb.common.utils.Query;
import io.wdb.modules.generator.generator.entity.MetadataResponse;
import io.wdb.modules.generator.generator.entity.UserInfoEntity;
import io.wdb.modules.generator.generator.entity.customer.UserInfoEntityCustomer;
import io.wdb.modules.generator.generator.entity.statistics.UserStatistics;
import io.wdb.modules.generator.generator.entity.web.DaysQueryRequest;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import io.wdb.modules.manager.sys.dao.BaseDao;


/**
 * 用户信息表
 * 
 * @author wdb
 * @email admin@wdb007.com
 * @date 2017-11-30 15:15:36
 */
@Mapper
public interface UserInfoDao extends BaseDao<UserInfoEntity> {

	List<UserInfoEntityCustomer> queryListCustomer(Query query);
	
	int queryListCustomerTotal(Query query);
	
	List<UserInfoEntityCustomer> queryCapitalList(Query query);

	int queryCapitalListTotal(Query query);

	List<UserInfoEntityCustomer> queryByMobileNo(String mobileNo);

	List<MetadataResponse> newUserCount(Map<String, Object> params);
	@Deprecated
	String daysEachUser(DaysQueryRequest daysQueryRequest);
	
	UserStatistics daysUser(DaysQueryRequest daysQueryRequest);

}
